package com.lengyu.vxminiprogram.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lengyu.vxminiprogram.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyu
 * @since 2025-02-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Votes对象", description="")
public class Votes extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String userId;

    @ApiModelProperty(value = "微信openid")
    private String vxOpenId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "投票主题")
    private String title;

    @ApiModelProperty(value = "投票描述")
    private String description;

    @ApiModelProperty(value = "最多可选数")
    private Integer maxChoices;

    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    private Integer status;

    private Boolean deleteFlag;


}
